package com.sumainfor.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.sumainfor.common.utlis.ComUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mybatis-plus配置
 */
@Configuration
@MapperScan(basePackageClasses = {GenerateUUID.class})
public class MybatisPlusConfig {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }


    @Bean
    public ComUtils createComUtils() {
        return new ComUtils();
    }
}
